/* CSS for OS Page */
.classes {
  padding: 12rem 9% 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px; /* Prevents stretching on large screens */
  margin: 0 auto;
  text-align: left;
}


.classes h1 {              /* Page Title */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-color);
}

.classes h2 {              /* Section Titles */
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.classes h3 {              /* Subsection Titles */
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  color: rgb(239, 133, 133);
}

.classes h4 {
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 600;            /* Semi-bold */
  margin-top: 1rem;            /* Space above */
  color: rgba(245, 245, 245, 0.896); /* Matches your headings */
}

mark {
  background-color: rgba(239, 136, 136, 0.975);
  padding: 0 0.2rem;                       /* Slight padding for readability */
  border-radius: 0.5rem;                   /* Rounded corners */
}

.tab {
  font-size: clamp(1rem, 2vw, 1.7rem);
  line-height: 1.9;
  margin-bottom: 2rem;
  color: rgba(245,245,245,0.7);
  tab-size: 8;
  align-self: center;       /* ➡ Center the container itself */
  justify-content: center;  /* ➡ Center them */
}

#Reference {               /* Reference Titles */
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: rgba(245,245,245,0.7);
}

.classes p {
  font-size: clamp(1rem, 2vw, 1.7rem);
  line-height: 1.9;
  margin-bottom: 2rem;
  color: rgba(245,245,245,0.7);
}

/* == Lists Styles == */
.classes ul,
.classes ol,
.bullets,
.numbers,
.circles,
.squares,
.none,
.letters {
  padding-left: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2vw, 1.7rem);
  color: rgba(245,245,245,0.7);
}

.bullets { list-style-type: disc; }
.circles { list-style-type: circle; }
.squares { list-style-type: square; }
.none { list-style-type: none; }
.numbers { list-style-type: decimal; }
.letters { list-style-type: lower-alpha; }

.classes li {
  margin-bottom: 0.7rem;
}


/* == IMG == */
.img-container {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;          /* ➡ Images wrap to a new line */
  align-self: center;       /* ➡ Center the container itself */
  justify-content: center;  /* ➡ Center them */
  gap: 1rem;                /* ➡ Space between images */
}

.img-container img {
  /* Responsive width clamp(min, preferred, max)
  *The browser looks at the preferred value:
  *If it’s smaller than min, it uses min.
  *If it’s bigger than max, it uses max.
  *Otherwise, it uses the preferred value as-is. 
  */
  width: clamp(200px, 80%, 450px);
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
}

/* Adjust dropdowns for smaller screens */
@media (max-width: 768px) {
  .classes {
    padding: 10rem 5% 2rem; /* Less padding on smaller screens */
  }

  .classes h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .classes h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .classes h3 {
    font-size: clamp(1.2rem, 4vw, 1.7rem);
  }

  .classes h4 {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .classes p,
  .tabs,
  .classes ul,
  .classes ol,
  .bullets,
  .numbers,
  .circles,
  .squares,
  .none {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
  }

  .img-container img {
    width: clamp(150px, 90%, 350px); /* Smaller images */
  }
}

@media (max-width: 480px) {
  .classes {
    padding: 8rem 3% 1.5rem; /* Further reduced padding */
  }

  .classes h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .classes h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .classes h3 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .classes h4 {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }

  .classes p,
  .classes ul,
  .classes ol,
  .bullets,
  .numbers,
  .circles,
  .squares,
  .none {
    font-size: clamp(0.8rem, 4vw, 1.2rem);
  }

  .img-container img {
    width: clamp(120px, 95%, 250px); /* Even smaller images */
  }
}
